<?php
/**
* 관리자 접속 인증 로직
* /admin/inc.auth.php
* 2008-01-18
* hamhaja <hamhaja@nextez.co.kr>
**/
if (!isset($User) || !is_object($User)) include_once dirname(__FILE__) . '/../common/inc.header.php';

if (!$User->is_admin())
{
	$User->unregister();
	$Error->fail(RE_LOGIN, '', 0, false);
	die ($Html->redirect($App->_url_admin));
}
?>